import { UserService } from './user/user.service';
import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  // 自定义名称注入 @Inject('appService')
  constructor(
    @Inject('appService') private readonly appService: AppService,
    @Inject('shop') private readonly shop: string[],
    private readonly useService: UserService,
    @Inject('Config') private readonly base: any,
  ) {}

  // @Get()
  // getHello(): string {
  //   return this.useService.findAll();
  // }
  @Get()
  getHello(): string {
    return this.base;
  }
}
